package com.wangju.chapter4.service.impl;

import com.wangju.chapter4.service.HelloService;

public class HelloServiceImpl implements HelloService {
    @Override
    public void sayHello(String name) {
        if (name == "" || name.trim() == ""){
            throw new RuntimeException("params name can not be null");
        }
        System.out.println("hello " + name);
    }
}
